import type {
  CustomerItem,
  ContactItem,
  AddressItem,
  AssetItem,
  PhotoItem,
  FaultsItem,
  ServiceEmployee,
} from './global'

export type InstallCaseForm = {
  customerDTO: CustomerItem
  contactDTO: ContactItem
  addressDTO: AddressItem
  assetDTO: ProductItem[]
  serviceEmployeeIds: ServiceEmployee[]
  woType: string
  beforeAfter: string //事前 1 事后  2
  appointmentTime: string
  appointmentTimeRemark: string
  needRevisitFlag: string //
  stationId: string //服务商Id
  requiredServiceTime: string //期望时间
  description: string //服务需求
  totalSalesAmount: string //销售总价
  remark: string //备注
}

//工单创建 时的产品信息
export type ProductItem = {
  productId: string
  orderNo: string
  purchaseType: string
  purchaseChannel: string
  purchaseChannel2: string
  purchaseDate: string
  brand: string
  stationId: string //服务商ID
  productCategory: string
  productCode: string
  productName: string
  bigCategoryCode: string //产品大类编码
  mdCategoryCode: string //产品中类编码
  smCategoryCode: string //产品小类编码
  productModel: string
  quantity: number
  salePrice: string
  guaranteeType: number //1：保内, 2: 保外;
  guaranteeChangeType: number // 0: 未变更; 1: 保内转保外; 2: 保外转保内;
  serialNumber: string
  faults: FaultsItem[]
}
